package com.wrh.draw.layer;

import com.wrh.draw.LonLatConverter;
import com.wrh.draw.bean.LonLat;
import org.geojson.FeatureCollection;

import java.awt.*;

/**
 * @author wrh
 */
public abstract class GeoJsonLayer extends LonLatLayer {

    private FeatureCollection featureCollection;

    public GeoJsonLayer(FeatureCollection featureCollection) {
        this.featureCollection = featureCollection;
    }

    public FeatureCollection getFeatureCollection() {
        return featureCollection;
    }

    public void setFeatureCollection(FeatureCollection featureCollection) {
        this.featureCollection = featureCollection;
    }

    /**
     * 绘制 GeoJson
     */
    public abstract void draw(Graphics2D g, LonLatConverter lonLatConverter);

}
